如何在Expo React native中安装Firebase? | 您所在的位置:网站首页 › 将军总在暗恋我 小说 › 如何在Expo React native中安装Firebase? |
首先,如果你使用的是一个expo,你应该使用下面的命令来安装你的expo的Firebase expo install firebase在此之后,您需要访问Firebase控制台,并将API密钥和其他标识符从中获取到一个新文件中,并存储该信息,例如 const firebaseConfig = { apiKey: 'api-key', authDomain: 'project-id.firebaseapp.com', databaseURL: 'https://project-id.firebaseio.com', projectId: 'project-id', storageBucket: 'project-id.appspot.com', messagingSenderId: 'sender-id', appId: 'app-id', measurementId: 'G-measurement-id', };在此之后,您就可以开始使用Firebase了 有关更详细的了解,请参考Expo Firebase Documentation。 如果你想问更多的问题,请不要客气 |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |